Deleting all files inside a directory laravel 8

116

Deleting all files inside a directory laravel 8 -

use Illuminate\Filesystem\Filesystem;
$file = new Filesystem;
$file->cleanDirectory('storage/app/backgrounds');

Comments

Submit
0 Comments